import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: "/",
      redirect: "/login",
    },
    {
      path: "/login",
      component: () => import("../pages/login/Index.vue"),
    },
    {
      path: "/Home",
      component: () => import("../pages/Home/Index.vue"),
      children: [
        {
          path: "/Home",
          redirect: "/Home/yhsj",
        },
        {
          path: "/Home/yhsj",
          component: () => import("../pages/Home/yhsj/index.vue"),
        },
        {
          path: "/Home/szbyy",
          component: () => import("../pages/Home/szbyy/index.vue"),
        },
        {
          path: "/Home/yzbyy",
          component: () => import("../pages/Home/yzbyy/index.vue"),
        },
        {
          path: "/Home/ggxx",
          component: () => import("../pages/Home/ggxx/index.vue"),
        },
        {
          path: "/Home/nrxg",
          component: () => import("../pages/Home/nrxg/index.vue"),
        },
        {
          path: "/Home/zbdt",
          component: () => import("../pages/Home/zbdt/index.vue"),
        },

        {
          path: "/Home/fpsj",
          component: () => import("../pages/Home/fpsj/index.vue"),
        },
        {
          path: "/Home/zblb",
          component: () => import("../pages/Home/zblb/index.vue"),
        },
        {
          path: "/Home/zbsz",
          component: () => import("../pages/Home/zbsz/index.vue"),
        },
        {
          path: "/Home/cwzk",
          component: () => import("../pages/Home/cwzk/index.vue"),
        },
        {
          path: "/Home/spkc",
          component: () => import("../pages/Home/spkc/index.vue"),
        },
        {
          path: "/Home/xjfz",
          component: () => import("../pages/Home/xjfz/index.vue"),
        },
      ],
    },

    {
      path: "/:pathMatch(.*)*",
      component: () => import("../pages/notFound/Index.vue"),
    },
  ]
})

export default router